import {adminGetArticle} from "@/api/api";
import {message} from "ant-design-vue";
async function getArticleById(id: string) {
    const res :any = await adminGetArticle(id);
    if (res.code != 200) {
        message.error(res.msg);
        return false;
    }
    return res.data;
}
export default getArticleById;
